<%--
  Created by IntelliJ IDEA.
  User: 唐东
  Date: 2021/1/18
  Time: 17:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        body{
            background-color: pink;
        }
    </style>
    <script type="text/javascript">
        function regist(){
            window.location.href='http://localhost:8080/regist.jsp';
        }
    </script>
</head>
<body>
<form action="/loginServlet" method="post">
    <table style="margin-left: 500px;width: 400px;height: 200px">
        <tr>
            <h2 style="margin-left: 500px;margin-top: 100px;">用户登录</h2>
        </tr>
        <tr>
            <td>用户名：</td>
            <td>
                <input type="text" name="userName" placeholder="请输入用户名"/>
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input type="password" name="password" placeholder="请输入密码"/>
            </td>
        </tr>
        <tr>
            <td>
                <input type="radio" name="userType" value="1"/>管理员
            </td>
            <td>
                <input type="radio" name="userType" value="0"/>普通用户
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="登录" >
            </td>
            <td>
                <input type="button" onclick="regist()" value="注册"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
